home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Development Platforms / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / Timer.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 11:25 PM
  3.     Timer.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-1990
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Timer;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingTimer}
  21. {$SETC UsingTimer := 1}
  22.  
  23. {$I+}
  24. {$SETC TimerIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingOSUtils}
  30. {$I $$Shell(PInterfaces)OSUtils.p}
  31. {$ENDC}
  32. {$SETC UsingIncludes := TimerIncludes}
  33.  
  34. TYPE
  35. TMTaskPtr = ^TMTask;
  36. TMTask = RECORD
  37.     qLink: QElemPtr;
  38.     qType: INTEGER;
  39.     tmAddr: ProcPtr;
  40.     tmCount: LONGINT;
  41.     tmWakeUp: LONGINT;
  42.     tmReserved: LONGINT;
  43.     END;
  44.  
  45.  
  46. PROCEDURE InsTime(tmTaskPtr: QElemPtr);
  47.     INLINE $205F,$A058;
  48. PROCEDURE InsXTime(tmTaskPtr: QElemPtr);
  49.     INLINE $205F,$A458;
  50. PROCEDURE PrimeTime(tmTaskPtr: QElemPtr;count: LONGINT);
  51.     INLINE $201F,$205F,$A05A;
  52. PROCEDURE RmvTime(tmTaskPtr: QElemPtr);
  53.     INLINE $205F,$A059;
  54.  
  55.  
  56. {$ENDC}    { UsingTimer }
  57.  
  58. {$IFC NOT UsingIncludes}
  59.     END.
  60. {$ENDC}
  61.  
  62.